﻿@model IEnumerable<Guan.CMS.Web.ViewModels.ProductCategory.ProductCategoryTree>
@{
    Layout = null;
}
<ul class="list-1">
    @foreach (var top in Model)
    {
        <li style="padding: 0;background: none;">@Html.ActionLink(top.Name,"Index",new{category=top.Id},new{title="产品分类："+top.Name})</li>
        foreach (var sub in top.Children)
        {
            <li>@Html.ActionLink(sub.Name, "Index", new { category = sub.Id })</li>
        }
    }
</ul>
<a href="@Url.Action("Index","Products")" class="btn-1"><span>所有产品</span></a>